-- GENERATED SPELL FOR [Woodpaw Mystic] --


function spell0_5254(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(8005,pUnit)
pUnit:RegisterEvent('Sorts_5254', 3000, 1)
end

function spell1_5254(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5254', 3000, 1)
end

function Sorts_5254(pUnit, Event)
local choix_sorts_5254 = math.random(0, 1)
if choix_sorts_5254 == 0 then
pUnit:RegisterEvent('spell0_5254', 1, 1)
end
if choix_sorts_5254 == 1 then
pUnit:RegisterEvent('spell1_5254', 1, 1)
end
end

function mob5254_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5254', math.random(1500, 3000), 1)
end

function mob5254_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5254_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5254_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5254, 1, 'mob5254_Action')
RegisterUnitEvent(5254, 2, 'mob5254_Leave')
RegisterUnitEvent(5254, 3, 'mob5254_Kill')
RegisterUnitEvent(5254, 4, 'mob5254_Die')
